#include "stdafx.h"
#include "Text.h"


Rectangle Text::getContour()
	{
	Rectangle contour(0,0,0,0);
	int length = sizeof(_text)/sizeof(char);
	if (_direction)
		{
		contour.columns = length + 1;
		contour.rows = 1;
		}	
	else
		{
		contour.columns = 1;
		contour.rows = length + 1;
		}
	return contour;
	}

char Text::charAt(int i, int j)
	{
	if (j > i)
		i = j;
	return _text[i];
	}